package com.data.modules.message.handle.executor;

import java.util.function.Supplier;

/**
 * <p>
 * MessageSend
 * </p>
 *
 * @author li
 * @version 1.0
 * @date 2022-03-24 18:59
 * @since 1.0
 */
public interface MessageSend<T> {

    boolean send(T message);

    default void afterSend(T message, Supplier<Boolean> sendResult) {
    }

}
